<?php

namespace App\Http\Controllers\Adminer;

use App\Http\Controllers\AdminController;
use App\Services\PurviewService;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Cookie;

class HomeController extends AdminController
{
    protected $data;
    function __construct()
    {
        parent::__construct();
        $this->data['title'] = "首页";
        $this->data['title_en'] = "Home";
        $this->data['title_url'] = "/manage";
        $this->data['is_search'] = TRUE;
    }
    public function index(Request $request){
        setcookie("cms_posi", "", time()-3600);
       return view("adminer.index.index",$this->data);
    }
}